// 消费类别类型
export type ExpenseCategory = 
  | 'food' 
  | 'transport' 
  | 'shopping' 
  | 'entertainment' 
  | 'bills' 
  | 'healthcare' 
  | 'education' 
  | 'other';

// 消费记录类型定义
export interface Expense {
  id: string;
  amount: number;
  category: ExpenseCategory;
  description: string;
  date: string;
}

// 类别配置
export const CATEGORY_CONFIG: Record<ExpenseCategory, { icon: string; color: string; name: string }> = {
  food: { icon: 'fas fa-utensils', color: 'bg-amber-500', name: '餐饮' },
  transport: { icon: 'fas fa-car', color: 'bg-blue-500', name: '交通' },
  shopping: { icon: 'fas fa-shopping-bag', color: 'bg-purple-500', name: '购物' },
  entertainment: { icon: 'fas fa-film', color: 'bg-pink-500', name: '娱乐' },
  bills: { icon: 'fas fa-file-invoice-dollar', color: 'bg-green-500', name: '账单' },
  healthcare: { icon: 'fas fa-heartbeat', color: 'bg-red-500', name: '医疗' },
  education: { icon: 'fas fa-graduation-cap', color: 'bg-indigo-500', name: '教育' },
  other: { icon: 'fas fa-question-circle', color: 'bg-gray-500', name: '其他' },
};

// 统计数据类型
export interface StatisticsData {
  category: ExpenseCategory;
  amount: number;
  percentage: number;
  color: string;
}